package sis.studentinfo;

/**
 * Created by IntelliJ IDEA.
 * User: alexander-kalden
 * Date: 9/14/12
 * Time: 3:03 PM
 * To change this template use File | Settings | File Templates.
 */
public class Scorer {
    public int score(String input) {
        return Integer.parseInt(input);
    }

    public boolean isValid(String input) {
        try {
            Integer.parseInt(input);
            return true;
        }
        catch (NumberFormatException e) {
            return false;
        }
    }
}
